source ./env.sh
url=`printf "$HOSTS/${PREFIX}api/token/get?appID=${APPID}&appSecret=${APPSECRET}"`
echo "start request: curl -ks $url"
ret_info=`curl -ks $url`
echo "ret: $ret_info"
echo "${ret_info}" > ret.log

token=`./sign -json-file-path ret.log -json-path "$.data.accessToken" -parse-json`
echo "accessToken: $token"
sed -i "/ACCESSTOKEN/c\ACCESSTOKEN=$token" ./env.sh